package com.qiuzhiyi.adapter;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.qiuzhiyi.R;
import com.qiuzhiyi.item.AgentItem;

/**
 * Author: Li
 * Date: 2017/11/20 0020
 * Description: 经纪人
 */

public class AgentAdapter extends BaseQuickAdapter<AgentItem.ListBean, BaseViewHolder> {

    public AgentAdapter(int layoutResId) {
        super(layoutResId);
    }

    @Override
    protected void convert(BaseViewHolder helper, AgentItem.ListBean item) {
        helper.setText(R.id.txt_name, item.getEName());
        helper.setText(R.id.txt_phone, item.getEPhone());
        helper.addOnClickListener(R.id.img_phone);
    }
}
